package net.zjitc.yaobei_backed.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 单词实体
 */
@Data
@TableName("word")
public class Word {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String word;

    private String phonetic;

    private String meaning;

    /**
     * 示例句子（中文）
     * 映射到数据库字段：example_sentence_cn
     */
    @TableField("example_sentence_cn")
    private String exampleSentenceCn;

    /**
     * 示例句子（英文）
     * 映射到数据库字段：example_sentence_en
     */
    @TableField("example_sentence_en")
    private String exampleSentenceEn;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("audio_url")
    private String audioUrl;
}

